package com.bing.services;

import com.bing.entity.Question;

import java.util.List;
import java.util.Set;

/**
 * Created by kaibb on 15-11-1.
 */
public interface QuestionServices {


    /**
     * 保存Question集合到Mysql数据库
     *
     * @param questions Question集合
     */
    void saveMysqlQuestions(List<Question> questions);



    long getTotalQuestion();

    void initQuestion();
    /**
     * 更新Question
     *
     * @param questions 要更新的Questions
     * @return 更新后的Question
     */
    void update(List<Question> questions);

     List<Question> getNotOkQuestions(int size);
     List<Question> getNoAidQuestions(int size);


    void updateIds(Set<Integer> question);
}
